﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Item
/// </summary>
public class Item
{
    int item_id;

    public int Item_id
    {
        get { return item_id; }
        set { item_id = value; }
    }
    int category_id;

    public int Category_id
    {
        get { return category_id; }
        set { category_id = value; }
    }
    string name;

    public string Name
    {
        get { return name; }
        set { name = value; }
    }
    string author;

    public string Author
    {
        get { return author; }
        set { author = value; }
    }
    decimal price;
    int quantity = 1;

    

public int Quantity
{
  get { return quantity; }
  set { quantity = value; }
}public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    string image_url;

    public string Image_url
    {
        get { return image_url; }
        set { image_url = value; }
    }
    string notes;

    public string Notes
    {
        get { return notes; }
        set { notes = value; }
    }
    byte is_recommended;

    public byte Is_recommended
    {
        get { return is_recommended; }
        set { is_recommended = value; }
    }
    int rating;

    public int Rating
    {
        get { return rating; }
        set { rating = value; }
    }
    int rating_count;

    public int Rating_count
    {
        get { return rating_count; }
        set { rating_count = value; }
    }
    decimal amount;

    public decimal Amount
    {
        get { return this.Price*this.Quantity; }
        
    }


	public Item()
	{
       
	}
}